<?php /* Smarty version 2.6.26, created on 2011-06-15 14:19:45
         compiled from default/knowledgebase.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'default/knowledgebase.tpl', 29, false),)), $this); ?>
<p><?php echo $this->_tpl_vars['LANG']['knowledgebaseintrotext']; ?>
</p>

<p class="heading2"><?php echo $this->_tpl_vars['LANG']['knowledgebasecategories']; ?>
</p>

<table width="100%">
<tr>
<?php $_from = $this->_tpl_vars['kbcats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['kbcat']):
?>
<td width="33%" valign="top"><img src="images/folder.gif" border="0" align="middle" alt="" /> <strong><a href="<?php if ($this->_tpl_vars['seofriendlyurls']): ?>knowledgebase/<?php echo $this->_tpl_vars['kbcat']['id']; ?>
/<?php echo $this->_tpl_vars['kbcat']['urlfriendlyname']; ?>
<?php else: ?>knowledgebase.php?action=displaycat&amp;catid=<?php echo $this->_tpl_vars['kbcat']['id']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['kbcat']['name']; ?>
</a></strong> (<?php echo $this->_tpl_vars['kbcat']['numarticles']; ?>
)<br />
<?php echo $this->_tpl_vars['kbcat']['description']; ?>

</td>
<?php if (!($this->_tpl_vars['num'] % 3)): ?>
</tr>
<tr>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</tr>
</table>

<br />

<table width="100%" cellspacing="0" cellpadding="0"><tr><td width="50%" valign="top">

<p class="heading2"><?php echo $this->_tpl_vars['LANG']['knowledgebasepopular']; ?>
 <?php echo $this->_tpl_vars['LANG']['knowledgebasearticles']; ?>
</p>

<table width="100%">
<?php $_from = $this->_tpl_vars['kbmostviews']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['kbarticle']):
?>
<tr><td>
<img src="images/article.gif" align="middle" alt="" /> <strong><a href="<?php if ($this->_tpl_vars['seofriendlyurls']): ?>knowledgebase/<?php echo $this->_tpl_vars['kbarticle']['id']; ?>
/<?php echo $this->_tpl_vars['kbarticle']['urlfriendlytitle']; ?>
.html<?php else: ?>knowledgebase.php?action=displayarticle&amp;id=<?php echo $this->_tpl_vars['kbarticle']['id']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['kbarticle']['title']; ?>
</a></strong><br />
<?php echo ((is_array($_tmp=$this->_tpl_vars['kbarticle']['article'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, "...") : smarty_modifier_truncate($_tmp, 50, "...")); ?>
<br />
<font style="color:#A8A8A8;font-size:10px;"><?php echo $this->_tpl_vars['LANG']['knowledgebaseviews']; ?>
: <?php echo $this->_tpl_vars['kbarticle']['views']; ?>
</font>
</td></tr>
<?php endforeach; endif; unset($_from); ?>
</table>

</td><td width="50%">

<form method="post" action="knowledgebase.php?action=search">
<p align="center" class="heading2"><?php echo $this->_tpl_vars['LANG']['knowledgebasesearch']; ?>
</p><p align="center"><input type="text" name="search" size="25" /><br /><input type="submit" value="<?php echo $this->_tpl_vars['LANG']['knowledgebasesearch']; ?>
" /></p>
</form>

</td></tr></table>